
package com.idealighter.game.games.texaspoker.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.games.texaspoker.manager.TexapokerMgr;
import com.idealighter.game.games.texaspoker.message.ReqEnterTableMsg;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.server.handler.ReqMessageHandler;


@ReqMsgHandler(505103)
public class ReqEnterTableHandler implements ReqMessageHandler {

  @Inject
  private TexapokerMgr texapokerMgr;

  @Override
  public ResMessage action(Player player, ReqMessage message) {
    ReqEnterTableMsg msg = (ReqEnterTableMsg) message;
    texapokerMgr.enterTable(player, msg.getTableId(), msg.getOrder(), msg.getPassword());


    return null;

  }
}
